# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from dao import models

# Create your views here.


def get_detail(request):
	# 通过`__`进行关联查询
	detail_dict = models.StudentDetail.objects.filter(student__status=1).values('letter_of_thanks',
																				   'student__name', 'student__pic',
																				   'student__company', 'student__salary')
	# print detail_dict

	return detail_dict
